<!doctype html>
<html class="no-js">
<head>

    <?php require(VIEW_PATH . 'resource.php'); ?>

</head>
<body>

<?php require(VIEW_PATH . 'header.php'); ?>

<div class="am-g">
    <div class="am-u-md-8">

        <div class="am-panel am-panel-secondary">
            <div class="am-panel-hd"><?php echo $title ?></div>
            <div class="am-panel-bd">
                <?php echo $content ?>
            </div>
        </div>

        <ul class="am-comments-list am-comments-list-flip">

            <?php foreach ($list as $content) { ?>

                <li class="am-comment">
                    <div class="am-comment-main">
                        <header class="am-comment-hd">
                            <div class="am-comment-meta">
                                评论于
                                <time><?php echo $content->time; ?>
                                </time>
                            </div>
                        </header>

                        <div class="am-comment-bd">
                            <?php echo $content->content; ?>
                        </div>
                    </div>
                </li>
            <?php } ?>
        </ul>

        <ul class="am-pagination am-pagination-centered">
            <?php if ($page != 1) { ?>
                <li><a href="http://<?php echo BASE_PATH; ?>?user/index/<?php echo($page - 1); ?>">&laquo;</a></li>
            <?php } else { ?>
                <li class="am-disabled"><a href="#">&laquo;</a></li>
            <?php } ?>
            <li class="am-active"><?php echo $page; ?></li>
            <li><a href="http://<?php echo BASE_PATH; ?>?user/index/<?php echo($page + 1); ?>">&raquo;</a></li>
        </ul>

    </div>
    <div class="am-u-sm-4 am-show-lg-only">

        <h2>当前项目</h2>

        <script src='http://git.oschina.net/whiteblue/Together/widget_preview'></script>

        <style>
            .pro_name a {
                color: #4183c4;
            }

            .osc_git_title {
                background-color: #d8e5f1;
            }

            .osc_git_box {
                background-color: #fafafa;
            }

            .osc_git_box {
                border-color: #ddd;
            }

            .osc_git_info {
                color: #666;
            }

            .osc_git_main a {
                color: #4183c4;
            }
        </style>

    </div>
</div>

<?php require(VIEW_PATH . 'footer.php'); ?>

</body>
</html>